package com.situ.mall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.mall.common.ServerResponse;
import com.situ.mall.dao.ProductMapper;
import com.situ.mall.entity.Product;
import com.situ.mall.entity.ProductExample;
import com.situ.mall.service.IProductService;

@Service
public class ProductServiceImpl implements IProductService{
	@Autowired
	private ProductMapper productMapper;

	@Override
	public ServerResponse pageList() {
		List<Product> list = productMapper.selectByExample(new ProductExample());
		return ServerResponse.createSuccess("", list);
	}

}
